<div class="blade-content ng-scope" id="blade-content">
  <div class="blade-inner">
    <div class="inner-block">
      <form name="form" class="form" (submit)="onCreate()" [formGroup]="formGroup" novalidate>
        <div class="blade-static __bottom" *ngIf="currentBlade.isNew">
          <button class="btn" [disabled]="!formGroup.valid">创建</button>
        </div>
        <div class="form-group">
          <label class="form-label">厂家名称</label>
          <div class="form-input">
            <input name="factoryName" formControlName="factoryName" placeholder="输入厂家名称">
          </div>
          <div *ngIf="formErrors.factoryName" class="form-error">
            {{ formErrors.factoryName }}
          </div>
        </div>

        <div class="form-group">
          <label class="form-label">厂家Logo</label>
          <div class="form-input">
            <img [src]="baseUrl+'/img/' + currentEntity?.factoryLogo" alt="">
          </div>
        </div>

      </form>
      <!-- <p-fileUpload name="file" (onUpload)="onUpload($event)" cancelLabel="取消" chooseLabel="选择厂家logo"  ccept="image/*" url="http://192.168.15.150:8585/webapi/v1/sysSoundFiles/uploadFiles" ></p-fileUpload> -->
      <!-- <p-fileUpload  [ngClass]="{'fileUpload-edit':!file}"  name="file[]" (uploadHandler)="onUpload($event)" (onRemove)="onRemove($event)" cancelLabel="取消" chooseLabel="选择厂家logo"
      accept="image/*" customUpload="true" ></p-fileUpload> -->
      <p-fileUpload [ngClass]="{'fileUpload-edit':!file}" name="file[]" (uploadHandler)="onUpload($event)"
                    (onRemove)="onRemove($event)"
                    cancelLabel="取消" chooseLabel="选择厂家logo" accept="image/*" customUpload="true"
                    auto="false"></p-fileUpload>
    </div>
  </div>
</div>
